package com.quanquan.store.repository;

import com.quanquan.store.entity.ShoppingKill;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

/**
 * 功能描述: 商城秒杀数据层
 *
 * @ClassName: ShoppingKillRepository
 * @Author: xiaoqianh丶
 * @Date: 2019-06-29 15:41
 * @Version: V1.0
 */
public interface ShoppingKillRepository  extends JpaRepository<ShoppingKill,String>, JpaSpecificationExecutor<ShoppingKill> {


    /**
     * 根据id和数字查询秒杀商品信息
     * @param id
     * @param num
     * @return
     */
    public ShoppingKill findByIdAndRemove(String id, Integer num);


}
